<%@ Page PathInChannel="ajax/user/index{Ext}" RunAt="Execute" %>
<ali:Get ID="Me" Mark="User" Object="User" Guid="User['ID']"/>
<ali:List ID="Member" Mark="Course" Object="Member" Page="1" PageSize="1" Condition="IsDeleted=false and (ExpiredTime IS NULL or ExpiredTime>DateTime.Now) and UserID=User['ID']" />
<ali:Get ID="Level" Mark="Course" Object="MemberLevel" Guid="Member[LevelID]" />
<ali:List ID="MemberLevelList" Mark="Course" Object="MemberLevel" />
{"head":"<%=Me[Head]%>","Nickname":"<%=Me[Nickname]%>"<%If Member[Count] > 0%>,"isMember":true,"levelName":"<%=Level[Name]%>"<%If !Convert.IsDBNull(Member[ExpiredTime])%>,"days":<%=Convert.ToDateTime(Member[ExpiredTime]).Subtract(DateTime.Now).Days%><%EndIf%><%Else%>,"isMember":false,"levels":<%=MemberLevelList[Count]%><%EndIf%>}